package com.zego.wawaji.ui.bean.sign;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONObject;

/**
 * 签到解析
 * Created by Su on 2017/12/7.
 */
public class Sign extends BaseData {
    private int signedDayWwCoinZs;   // 签到赠送的娃娃币
    private int signedWeekDays;      // 签到天数

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);

        this.setSignedDayWwCoinZs(jsonObject.optInt("SignedDayWwCoinZs"));
        this.setSignedWeekDays(jsonObject.optInt("SignedWeekDays"));
    }

    public int getSignedWeekDays() {
        return signedWeekDays;
    }

    public void setSignedWeekDays(int signedWeekDays) {
        this.signedWeekDays = signedWeekDays;
    }

    public int getSignedDayWwCoinZs() {
        return signedDayWwCoinZs;
    }

    public void setSignedDayWwCoinZs(int signedDayWwCoinZs) {
        this.signedDayWwCoinZs = signedDayWwCoinZs;
    }
}
